'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function WriteValueFunction(Of TValue)( _ ByVal dataVariable As UADataVariable, _ ByVal writeValueFunction As Func(Of TValue,UAStatusCode), _ ByVal ParamArray arrayDimensions() As Integer _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim writeValueFunction As Func(Of TValue,UAStatusCode) Dim arrayDimensions() As Integer Dim value As UADataVariable value = UADataVariableExtension.WriteValueFunction(Of TValue)(dataVariable, writeValueFunction, arrayDimensions)
[Extension()] [NotNull()] public static UADataVariable WriteValueFunction<TValue>( UADataVariable dataVariable, Func<TValue,UAStatusCode> writeValueFunction, params int[] arrayDimensions )
[Extension()] [NotNull()] public: static UADataVariable^ WriteValueFunctiongeneric<typename TValue> ( UADataVariable^ dataVariable, Func<TValue^,UAStatusCode^>^ writeValueFunction, ... array<int>^ arrayDimensions )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - writeValueFunction
- The write value function, i.e. the function that accepts the value to be written, performs the write operation, and returns the status code that is the result of the OPC UA Write.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - arrayDimensions
- The size of each dimension of the array value.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TValue
- The type of the value of the data variable.
Return Value
This method never returns null
(Nothing
in Visual Basic).